package com.jyh.db.entity;

import java.util.ArrayList;
import java.util.List;

public class JyhButtonExample {
    /**
     * jyh_button
     */
    protected String orderByClause;

    /**
     * jyh_button
     */
    protected boolean distinct;

    /**
     * jyh_button
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbggenerated 2017-10-19
     */
    public JyhButtonExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbggenerated 2017-10-19
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-19
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-19
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-19
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-19
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbggenerated 2017-10-19
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbggenerated 2017-10-19
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-19
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-19
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-19
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * jyh_button 2017-10-19
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCidIsNull() {
            addCriterion("cid is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("cid is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(Integer value) {
            addCriterion("cid =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(Integer value) {
            addCriterion("cid <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(Integer value) {
            addCriterion("cid >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cid >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(Integer value) {
            addCriterion("cid <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(Integer value) {
            addCriterion("cid <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<Integer> values) {
            addCriterion("cid in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<Integer> values) {
            addCriterion("cid not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(Integer value1, Integer value2) {
            addCriterion("cid between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(Integer value1, Integer value2) {
            addCriterion("cid not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andFunNameIsNull() {
            addCriterion("fun_name is null");
            return (Criteria) this;
        }

        public Criteria andFunNameIsNotNull() {
            addCriterion("fun_name is not null");
            return (Criteria) this;
        }

        public Criteria andFunNameEqualTo(String value) {
            addCriterion("fun_name =", value, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameNotEqualTo(String value) {
            addCriterion("fun_name <>", value, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameGreaterThan(String value) {
            addCriterion("fun_name >", value, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameGreaterThanOrEqualTo(String value) {
            addCriterion("fun_name >=", value, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameLessThan(String value) {
            addCriterion("fun_name <", value, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameLessThanOrEqualTo(String value) {
            addCriterion("fun_name <=", value, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameLike(String value) {
            addCriterion("fun_name like", value, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameNotLike(String value) {
            addCriterion("fun_name not like", value, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameIn(List<String> values) {
            addCriterion("fun_name in", values, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameNotIn(List<String> values) {
            addCriterion("fun_name not in", values, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameBetween(String value1, String value2) {
            addCriterion("fun_name between", value1, value2, "funName");
            return (Criteria) this;
        }

        public Criteria andFunNameNotBetween(String value1, String value2) {
            addCriterion("fun_name not between", value1, value2, "funName");
            return (Criteria) this;
        }

        public Criteria andLinkIsNull() {
            addCriterion("link is null");
            return (Criteria) this;
        }

        public Criteria andLinkIsNotNull() {
            addCriterion("link is not null");
            return (Criteria) this;
        }

        public Criteria andLinkEqualTo(String value) {
            addCriterion("link =", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkNotEqualTo(String value) {
            addCriterion("link <>", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkGreaterThan(String value) {
            addCriterion("link >", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkGreaterThanOrEqualTo(String value) {
            addCriterion("link >=", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkLessThan(String value) {
            addCriterion("link <", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkLessThanOrEqualTo(String value) {
            addCriterion("link <=", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkLike(String value) {
            addCriterion("link like", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkNotLike(String value) {
            addCriterion("link not like", value, "link");
            return (Criteria) this;
        }

        public Criteria andLinkIn(List<String> values) {
            addCriterion("link in", values, "link");
            return (Criteria) this;
        }

        public Criteria andLinkNotIn(List<String> values) {
            addCriterion("link not in", values, "link");
            return (Criteria) this;
        }

        public Criteria andLinkBetween(String value1, String value2) {
            addCriterion("link between", value1, value2, "link");
            return (Criteria) this;
        }

        public Criteria andLinkNotBetween(String value1, String value2) {
            addCriterion("link not between", value1, value2, "link");
            return (Criteria) this;
        }

        public Criteria andFunParametersIsNull() {
            addCriterion("fun_parameters is null");
            return (Criteria) this;
        }

        public Criteria andFunParametersIsNotNull() {
            addCriterion("fun_parameters is not null");
            return (Criteria) this;
        }

        public Criteria andFunParametersEqualTo(String value) {
            addCriterion("fun_parameters =", value, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersNotEqualTo(String value) {
            addCriterion("fun_parameters <>", value, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersGreaterThan(String value) {
            addCriterion("fun_parameters >", value, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersGreaterThanOrEqualTo(String value) {
            addCriterion("fun_parameters >=", value, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersLessThan(String value) {
            addCriterion("fun_parameters <", value, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersLessThanOrEqualTo(String value) {
            addCriterion("fun_parameters <=", value, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersLike(String value) {
            addCriterion("fun_parameters like", value, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersNotLike(String value) {
            addCriterion("fun_parameters not like", value, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersIn(List<String> values) {
            addCriterion("fun_parameters in", values, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersNotIn(List<String> values) {
            addCriterion("fun_parameters not in", values, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersBetween(String value1, String value2) {
            addCriterion("fun_parameters between", value1, value2, "funParameters");
            return (Criteria) this;
        }

        public Criteria andFunParametersNotBetween(String value1, String value2) {
            addCriterion("fun_parameters not between", value1, value2, "funParameters");
            return (Criteria) this;
        }

        public Criteria andIsMutualIsNull() {
            addCriterion("is_mutual is null");
            return (Criteria) this;
        }

        public Criteria andIsMutualIsNotNull() {
            addCriterion("is_mutual is not null");
            return (Criteria) this;
        }

        public Criteria andIsMutualEqualTo(Integer value) {
            addCriterion("is_mutual =", value, "isMutual");
            return (Criteria) this;
        }

        public Criteria andIsMutualNotEqualTo(Integer value) {
            addCriterion("is_mutual <>", value, "isMutual");
            return (Criteria) this;
        }

        public Criteria andIsMutualGreaterThan(Integer value) {
            addCriterion("is_mutual >", value, "isMutual");
            return (Criteria) this;
        }

        public Criteria andIsMutualGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_mutual >=", value, "isMutual");
            return (Criteria) this;
        }

        public Criteria andIsMutualLessThan(Integer value) {
            addCriterion("is_mutual <", value, "isMutual");
            return (Criteria) this;
        }

        public Criteria andIsMutualLessThanOrEqualTo(Integer value) {
            addCriterion("is_mutual <=", value, "isMutual");
            return (Criteria) this;
        }

        public Criteria andIsMutualIn(List<Integer> values) {
            addCriterion("is_mutual in", values, "isMutual");
            return (Criteria) this;
        }

        public Criteria andIsMutualNotIn(List<Integer> values) {
            addCriterion("is_mutual not in", values, "isMutual");
            return (Criteria) this;
        }

        public Criteria andIsMutualBetween(Integer value1, Integer value2) {
            addCriterion("is_mutual between", value1, value2, "isMutual");
            return (Criteria) this;
        }

        public Criteria andIsMutualNotBetween(Integer value1, Integer value2) {
            addCriterion("is_mutual not between", value1, value2, "isMutual");
            return (Criteria) this;
        }

        public Criteria andIsLookIsNull() {
            addCriterion("is_look is null");
            return (Criteria) this;
        }

        public Criteria andIsLookIsNotNull() {
            addCriterion("is_look is not null");
            return (Criteria) this;
        }

        public Criteria andIsLookEqualTo(Integer value) {
            addCriterion("is_look =", value, "isLook");
            return (Criteria) this;
        }

        public Criteria andIsLookNotEqualTo(Integer value) {
            addCriterion("is_look <>", value, "isLook");
            return (Criteria) this;
        }

        public Criteria andIsLookGreaterThan(Integer value) {
            addCriterion("is_look >", value, "isLook");
            return (Criteria) this;
        }

        public Criteria andIsLookGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_look >=", value, "isLook");
            return (Criteria) this;
        }

        public Criteria andIsLookLessThan(Integer value) {
            addCriterion("is_look <", value, "isLook");
            return (Criteria) this;
        }

        public Criteria andIsLookLessThanOrEqualTo(Integer value) {
            addCriterion("is_look <=", value, "isLook");
            return (Criteria) this;
        }

        public Criteria andIsLookIn(List<Integer> values) {
            addCriterion("is_look in", values, "isLook");
            return (Criteria) this;
        }

        public Criteria andIsLookNotIn(List<Integer> values) {
            addCriterion("is_look not in", values, "isLook");
            return (Criteria) this;
        }

        public Criteria andIsLookBetween(Integer value1, Integer value2) {
            addCriterion("is_look between", value1, value2, "isLook");
            return (Criteria) this;
        }

        public Criteria andIsLookNotBetween(Integer value1, Integer value2) {
            addCriterion("is_look not between", value1, value2, "isLook");
            return (Criteria) this;
        }

        public Criteria andButtonSeatIsNull() {
            addCriterion("button_seat is null");
            return (Criteria) this;
        }

        public Criteria andButtonSeatIsNotNull() {
            addCriterion("button_seat is not null");
            return (Criteria) this;
        }

        public Criteria andButtonSeatEqualTo(Integer value) {
            addCriterion("button_seat =", value, "buttonSeat");
            return (Criteria) this;
        }

        public Criteria andButtonSeatNotEqualTo(Integer value) {
            addCriterion("button_seat <>", value, "buttonSeat");
            return (Criteria) this;
        }

        public Criteria andButtonSeatGreaterThan(Integer value) {
            addCriterion("button_seat >", value, "buttonSeat");
            return (Criteria) this;
        }

        public Criteria andButtonSeatGreaterThanOrEqualTo(Integer value) {
            addCriterion("button_seat >=", value, "buttonSeat");
            return (Criteria) this;
        }

        public Criteria andButtonSeatLessThan(Integer value) {
            addCriterion("button_seat <", value, "buttonSeat");
            return (Criteria) this;
        }

        public Criteria andButtonSeatLessThanOrEqualTo(Integer value) {
            addCriterion("button_seat <=", value, "buttonSeat");
            return (Criteria) this;
        }

        public Criteria andButtonSeatIn(List<Integer> values) {
            addCriterion("button_seat in", values, "buttonSeat");
            return (Criteria) this;
        }

        public Criteria andButtonSeatNotIn(List<Integer> values) {
            addCriterion("button_seat not in", values, "buttonSeat");
            return (Criteria) this;
        }

        public Criteria andButtonSeatBetween(Integer value1, Integer value2) {
            addCriterion("button_seat between", value1, value2, "buttonSeat");
            return (Criteria) this;
        }

        public Criteria andButtonSeatNotBetween(Integer value1, Integer value2) {
            addCriterion("button_seat not between", value1, value2, "buttonSeat");
            return (Criteria) this;
        }

        public Criteria andIsConditionIsNull() {
            addCriterion("is_condition is null");
            return (Criteria) this;
        }

        public Criteria andIsConditionIsNotNull() {
            addCriterion("is_condition is not null");
            return (Criteria) this;
        }

        public Criteria andIsConditionEqualTo(String value) {
            addCriterion("is_condition =", value, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionNotEqualTo(String value) {
            addCriterion("is_condition <>", value, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionGreaterThan(String value) {
            addCriterion("is_condition >", value, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionGreaterThanOrEqualTo(String value) {
            addCriterion("is_condition >=", value, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionLessThan(String value) {
            addCriterion("is_condition <", value, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionLessThanOrEqualTo(String value) {
            addCriterion("is_condition <=", value, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionLike(String value) {
            addCriterion("is_condition like", value, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionNotLike(String value) {
            addCriterion("is_condition not like", value, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionIn(List<String> values) {
            addCriterion("is_condition in", values, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionNotIn(List<String> values) {
            addCriterion("is_condition not in", values, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionBetween(String value1, String value2) {
            addCriterion("is_condition between", value1, value2, "isCondition");
            return (Criteria) this;
        }

        public Criteria andIsConditionNotBetween(String value1, String value2) {
            addCriterion("is_condition not between", value1, value2, "isCondition");
            return (Criteria) this;
        }
    }

    /**
     * jyh_button
     *
     * @mbggenerated do_not_delete_during_merge 2017-10-19
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * jyh_button 2017-10-19
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}